import request from "@/utils/request";
import { dateEquals } from "element-plus";

export function selectAllStudent(data){
    return request({
        url:'/student/selectStudents',
        method: 'GET',
        params: data
    })
}

export function selectAllStudents(){
    return request({
        url:'/student/selectAllStudent',
        method: 'GET',
    })
}


// 新增学员
export function addStudent(data){
    return request({
        url:'/student/addStudent',
        method: 'POST',
        data: data
    })
}


export function getClassStudent(data){
    return request({
        url:'/class/getClassStudent',
        method: 'GET',
        params: data
    })
}



export function classManagement(studentIds , classId, courseId){
    const data = {
        studentIds,
        classId,
        courseId
    }
    return request({
        url:'/class/classManagement',
        method: 'POST',
        data: data
    })
}
// 重置密码
export function resetPwd(data){
    return request({
        url:'/student/resetPwd',
        method: 'PUT',
        data: data
    })
}


// 删除学员
export function deleteStudent(data){
    return request({
        url:'/student/deleteStudent',
        method: 'PUT',
        data: data
    })
}

export function getTeacher(data){
    return request({
        url:'/teacher/showTeacher',
        method: 'GET',
        params: data
    })
}



export function getSchedule(data){
    return request({
        url:'/schedule/getSchedule',
        method: 'GET',
        params: data
    })
}


export function scheduleManage(data){
    return request({
        url:'/schedule/scheduleManage',
        method: 'PUT',
        data: data
    })
}

